<?php
include "konek.php";
if (!isset($_GET['id']))
{
	?><script language="javascript">alert('DATA TIDAK ADA');
				document.location='../pages/list.php'</script><?php
}
else
{
$id=$_GET['id'];
$sql=mysql_query("DELETE FROM posting WHERE idpost='$id' ");
header('location:../pages/list.php');
}
?>